Skip to content

Add typing to aiida/common/{utils,extendeddicts}.py #6706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: update-mypy
Choose a base branch
from

Conversation

danielhollas
Copy link
Collaborator

@danielhollas danielhollas commented Jan 14, 2025

This completes the typing of the aiida.common module.

The types in extendeddicts.py is kind of shoddy, and some function signatures are not typed since all the classes there are super-generic so they would all be mostly Any anyway. But I think it is still better than nothing and it is better than ignoring this file entirely.

Depends on #6704

@danielhollas danielhollas marked this pull request as draft January 14, 2025 18:55
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 76.36364% with 13 lines in your changes missing coverage. Please review.

Project coverage is 79.15%. Comparing base (ee2e443) to head (819f5c6).

Files with missing lines Patch % Lines
src/aiida/common/utils.py 89.29% 3 Missing ⚠️
src/aiida/orm/computers.py 57.15% 3 Missing ⚠️
src/aiida/orm/comments.py 33.34% 2 Missing ⚠️
src/aiida/orm/authinfos.py 0.00% 1 Missing ⚠️
src/aiida/orm/groups.py 0.00% 1 Missing ⚠️
src/aiida/orm/logs.py 0.00% 1 Missing ⚠️
src/aiida/orm/nodes/node.py 0.00% 1 Missing ⚠️
src/aiida/orm/users.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           update-mypy    #6706      +/-   ##
===============================================
+ Coverage        79.15%   79.15%   +0.01%     
===============================================
  Files              566      566              
  Lines            43404    43407       +3     
===============================================
+ Hits             34351    34354       +3     
  Misses            9053     9053              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielhollas danielhollas changed the base branch from main to update-mypy June 21, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant